package com.huiben.app.cartoonbooks.app;


import android.content.Context;
import android.util.Log;

import com.huiben.app.cartoonbooks.base.RxSubscriber;

/**
 * Created by LXR on 2017/2/14.
 */

public class FramePresenter extends FrameContract.Presenter {

    @Override
    public void getOneNewsDataRequest(Context mContext, String postId) {


        mRxManage.add(model.getData(postId).subscribe(new RxSubscriber<FrameBean>(MyApp.getInst()) {
            @Override
            protected void _onNext(FrameBean newsDetail) {
                view.ShowPalyData(newsDetail);
            }

            @Override
            protected void _onError(String message) {

                Log.e("presenter", "_onError: " +message);
            }
        }));
    }

    @Override
    protected void start() {

    }
}
